<%@page import="net.vinote.smart.platform.service.SRE"%>
<%@page import="net.vinote.smart.platform.exception.PlatformException"%>
<%@page import="net.vinote.smart.platform.module.database.bo.BizObject"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%
	String layoutID = request.getParameter("LayoutID");
	if (layoutID == null)
		throw new PlatformException("页面编号:" + layoutID + " 不存在!");
	String layout=SRE.getLayoutCatalog(layoutID).getLayoutStyle();
	String queryString = request.getQueryString();
	String url = null;
	if ("Frame".equals(layout)) {
		url = SRE.getCodeItems("PageLayout").get("Frame").getAttr01();
	} else if ("Accordion".equals(layout)) {
		url = SRE.getCodeItems("PageLayout").get("Accordion").getAttr01();
	} else if("Tree".equals(layout)){
		url = SRE.getCodeItems("PageLayout").get("Tree").getAttr01();
	}else {
		throw new PlatformException("未知布局:" + layout);
	}
	response.sendRedirect(request.getContextPath()+"/"+url + "?" + queryString);
%>
